package com.gwclh.personnel.enums;

import lombok.Getter;

/**
 * @author gzhhh
 * @description 响应码枚举
 */
@Getter
public enum ResultCode {
    SUCCESS(200, "success"),

    FAILED(400, "failed"),

    UNAUTHORIZED(401, "用户未认证"),

    NOT_FOUND(404, "请求的资源不存在"),

    VALIDATE_FAILED(405, "参数校验失败"),

    ERROR(500, "服务器内部出了点错");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
